//订单接口模块
import request from '@/utils/request'

//获取订单列表
export const getOrderListReq = params => {
  return request({
    method: 'get',
    url: '/order/list',
    params,
  })
}

//获取订单详情
export const getOrderDetailReq = params => {
  return request({
    method: 'get',
    url: '/order/detail',
    params,
  })
}

//修改订单
export const editOrderReq = data => {
  return request({
    method: 'post',
    url: '/order/edit',
    data,
  })
}

//获取首页数据
export const getTotalDataReq = () => {
  return request({
    method: 'get',
    url: '/order/totaldata',
  })
}
//获取订单数据
export const getOrderTotalReq = params => {
  return request({
    method: 'get',
    url: '/order/ordertotal',
    params,
  })
}
